/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __IMPL_PARSE_RETURN_IMPL_H__
#define __IMPL_PARSE_RETURN_IMPL_H__

#include "../tools/head.h"

namespace xos_http_protocol
{

    class parse_return_impl : public xos_stl::mem_item< xos::release_impl< parse_return_impl >, thread_lock >, 
        public i_parse_return
    {
    public:
        typedef xos::release_impl< parse_return_impl > T;

    public:
        /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        //

        static int get_xos_item_data( ITEM_DATA*& item_ptr );

    public:
        parse_return_impl();
        ~parse_return_impl();

    protected:
        int init_data();

    public:
        int init();
        int term();

    };

} // xos_http_protocol

#endif // __IMPL_PARSE_RETURN_IMPL_H__
